.alert-condition-container {
	margin: 0 16px;
	margin-top: 24px;

	.alert-condition {
		display: flex;
		align-items: center;
		margin-left: 12px;
		margin-top: 24px;

		.alert-condition-tabs {
			display: flex;
			border-radius: 2px;
			border: 1px solid var(--bg-slate-400);
			background: var(--bg-ink-300);
			flex-direction: row;
			border-bottom: none;
			margin-bottom: -1px;

			.explorer-view-option {
				display: flex;
				align-items: center;
				justify-content: center;
				flex-direction: row;
				border: none;
				padding: 9px;
				box-shadow: none;
				border-radius: 0px;
				border-left: 0.5px solid var(--bg-slate-400);
				border-bottom: 0.5px solid var(--bg-slate-400);
				width: 120px;
				height: 36px;

				gap: 8px;

				&.active-tab {
					background-color: var(--bg-ink-500);
					border-bottom: none;

					&:hover {
						background-color: var(--bg-ink-500) !important;
					}
				}

				&:disabled {
					background-color: var(--bg-ink-300);
					opacity: 0.6;
				}

				&:first-child {
					border-left: 1px solid transparent;
				}

				&:hover {
					background-color: transparent !important;
					border-left: 1px solid transparent !important;
					color: var(--bg-vanilla-100);
				}
			}
		}
	}
}

.alert-threshold-container,
.anomaly-threshold-container {
	padding: 24px;
	padding-right: 72px;
	background-color: var(--bg-ink-500);
	border: 1px solid var(--bg-slate-400);
	width: fit-content;

	.alert-condition-sentences {
		display: flex;
		flex-direction: column;
		gap: 12px;

		.alert-condition-sentence {
			display: flex;
			align-items: center;
			gap: 16px;
			flex-wrap: wrap;

			.sentence-text {
				color: var(--text-vanilla-400);
				font-size: 14px;
				line-height: 1.5;
			}

			.ant-select {
				width: 240px !important;

				.ant-select-selector {
					background-color: var(--bg-ink-300);
					border: 1px solid var(--bg-slate-400);
					color: var(--text-vanilla-400);
					font-family: 'Space Mono';

					&:hover {
						border-color: var(--bg-vanilla-300);
					}

					&:focus {
						border-color: var(--bg-vanilla-300);
						box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
					}
				}

				.ant-select-selection-item {
					color: var(--bg-vanilla-100);
				}

				.ant-select-arrow {
					color: var(--bg-vanilla-400);
				}
			}
		}
	}

	.thresholds-section {
		margin-top: 16px;
		margin-left: 24px;

		.threshold-item {
			display: flex;
			flex-direction: column;
			gap: 0;
			margin-bottom: 16px;

			.threshold-row {
				display: flex;
				align-items: center;
				gap: 16px;
				margin-bottom: 2px;

				.threshold-indicator {
					.threshold-dot {
						width: 12px;
						height: 12px;
						border-radius: 50%;
						flex-shrink: 0;
					}
				}

				.threshold-controls {
					display: flex;
					align-items: center;
					gap: 8px;

					.ant-input {
						background-color: var(--bg-ink-400);
						border: 1px solid var(--bg-slate-400);
						color: var(--bg-vanilla-100);
						height: 32px;

						&::placeholder {
							font-family: 'Space Mono';
						}

						&:hover {
							border-color: var(--bg-vanilla-300);
						}

						&:focus {
							border-color: var(--bg-vanilla-300);
							box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
						}
					}

					.ant-select {
						.ant-select-selector {
							background-color: var(--bg-ink-400);
							border: 1px solid var(--bg-slate-400);
							color: var(--bg-vanilla-100);
							height: 32px;

							&:hover {
								border-color: var(--bg-vanilla-300);
							}

							&:focus {
								border-color: var(--bg-vanilla-300);
								box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
							}

							.ant-select-selection-placeholder {
								font-family: 'Space Mono';
							}
						}

						.ant-select-selection-item {
							color: var(--bg-vanilla-100);
						}

						.ant-select-arrow {
							color: var(--bg-vanilla-400);
						}
					}

					.icon-btn {
						color: var(--bg-vanilla-400);
						border: 1px solid var(--bg-slate-400);
						border-radius: 4px;
						display: flex;
						align-items: center;
						justify-content: center;
					}
				}
			}

			.recovery-threshold-input-group {
				display: flex;
				align-items: center;
				gap: 0;
				margin-left: 28px;

				.recovery-threshold-label {
					pointer-events: none;
					cursor: default;
				}

				.recovery-threshold-btn {
					pointer-events: none;
					cursor: default;
					color: var(--bg-vanilla-400);
					background-color: var(--bg-ink-400) !important;
					border: 1px solid var(--bg-slate-400);
					border-radius: 4px;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.ant-input {
					background-color: var(--bg-ink-400);
					border: 1px solid var(--bg-slate-400);
					color: var(--bg-vanilla-100);
					height: 32px;

					&::placeholder {
						font-family: 'Space Mono';
					}

					&:hover {
						border-color: var(--bg-vanilla-300);
					}

					&:focus {
						border-color: var(--bg-vanilla-300);
						box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
					}
				}
			}
		}

		.add-threshold-btn {
			margin-top: 8px;
			border: 1px dashed var(--bg-slate-400);
			color: var(--bg-vanilla-300);
			background-color: transparent;
			border-radius: 4px;
			height: 32px;
			padding: 0 16px;
			display: flex;
			align-items: center;
			justify-content: center;

			&:hover {
				border-color: var(--bg-vanilla-300);
				color: var(--bg-vanilla-100);
			}

			.anticon {
				margin-right: 8px;
			}
		}
	}
}
